﻿using System;
using Icms.Core.Model;
using Icms.Core.Repository;
using Icms.Core.Service;

namespace Icms.Service
{
    public class RoomService : CrudService<Room>, IRoomService
    {
        public RoomService(IRepo<Room> repo) : base(repo)
        {
        }

        public Guid Create(Room o, Court c)
        {
            o.Court = c;
            repo.Insert(o);
            repo.Save();
            return o.Id;
        }
    }
}